﻿<u:UObject x:Class="UTable.Objects.UNote"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    xmlns:up="clr-namespace:UTable.Objects.Controls.Primitives;assembly=UTable.Core"           
    xmlns:l="clr-namespace:UTable.Objects.Controls"
    Height="500" Width="800" MenuPosition="-5, -5" Background="Gray" CanHoldObjects="False">
    <u:UObject.Resources>
        <DataTemplate x:Key="List2Tempalate">
            <u:UGrid Background="Aqua" Height="48">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="120"/>
                </Grid.ColumnDefinitions>
                <u:UTextBlock Text="{Binding Path=Name}" Grid.Column="0" VerticalAlignment="Center"/>
                <u:UTextBlock Text="{Binding Path=Country}" Grid.Column="1" VerticalAlignment="Center"/>
                <u:UCheckBox IsChecked="{Binding Path=Paid}" Grid.Column="2" VerticalAlignment="Center">Paid</u:UCheckBox>
            </u:UGrid>
        </DataTemplate>
    </u:UObject.Resources>
    <u:UStackPanel>
        <u:UCanvas Height="428" x:Name="B">
            <u:UComboBox Height="30" Canvas.Top="258" Width="141" Canvas.Left="561">
                <ComboBoxItem>
                    <u:UButton Height="50" Width="100"/>
                </ComboBoxItem>
            </u:UComboBox>
            <up:UPopup Height="30" Canvas.Top="300" Width="141" Canvas.Left="561" x:Name="Pop" Background="Red">
                <Grid Background="Red">
                    <u:UButton Width="100" Height="25"/>
                </Grid>
            </up:UPopup>
            <Image Width="50" Height="50" Source="Images/WindowBackground.jpg" Canvas.Left="716" Canvas.Top="19" />
            <u:UTextBox Width="194" Height="101" Text="Visualisation and Interaction on a Collaborative Access Table Visualisation and Interaction on a Collaborative Access Table" Canvas.Left="163" 
                        Canvas.Top="82.703" FontSize="16" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True"/>
            <u:UButton x:Name="Button1" Height="50" Width="146" Pressed="Button1_Pressed" Canvas.Left="150" Canvas.Top="17" Click="Button1_Click" GlowBrush="Yellow" >
                Button 1
            </u:UButton>
            <u:UToggleButton x:Name="TButton" Height="50" Width="100" Canvas.Left="44" Canvas.Top="16" GlowBrush="Yellow" >Toggle Button</u:UToggleButton>
            <u:UCheckBox Height="48" Width="120" Canvas.Left="37" Canvas.Top="72" GlowBrush="Yellow" >Toggle Button</u:UCheckBox>
            <u:URadioButton x:Name="Radio1" Height="32" Width="83" Canvas.Left="38" Canvas.Top="114" GlowBrush="Yellow" >Radio 1</u:URadioButton>
            <u:URadioButton x:Name="Radio2" Height="32" Width="83" Canvas.Left="38" Canvas.Top="152" >Radio 2</u:URadioButton>
            <u:USlider x:Name="slider1" Height="30" Width="214" Canvas.Left="37" Canvas.Top="190" GlowBrush="Yellow" ></u:USlider>
            <u:USlider Height="200" Width="30" Orientation="Vertical" Canvas.Left="736" Canvas.Top="177" GlowBrush="Yellow" ></u:USlider>
            <up:UScrollBar x:Name="scrollbar1" Orientation="Horizontal"  Height="31" Width="270" Canvas.Left="302" Canvas.Top="19" GlowBrush="Yellow" />
            <u:UScrollViewer Height="137" Canvas.Left="303" Canvas.Top="240" Width="158">
                <u:UListBox Background="AliceBlue" x:Name="List1" Width="127">
                    <u:UListBoxItem>
                        <u:UButton Height="30" Width="127">Item1</u:UButton>
                    </u:UListBoxItem>
                    <u:UListBoxItem>
                        <u:UButton Height="30" Width="127">Item2</u:UButton>
                    </u:UListBoxItem>
                    <u:UListBoxItem>
                        <u:UButton Height="30" Width="127">Item3</u:UButton>
                    </u:UListBoxItem>
                    <u:UListBoxItem>
                        <u:UButton Height="30" Width="127">Item4</u:UButton>
                    </u:UListBoxItem>
                    <u:UListBoxItem>
                        <u:UButton Height="30" Width="127">Item5</u:UButton>
                    </u:UListBoxItem>
                </u:UListBox>
            </u:UScrollViewer>
            <u:UScrollViewer Height="136" Canvas.Left="39" Canvas.Top="258" Width="228">
                <u:UListBox x:Name="List2" ItemTemplate="{StaticResource List2Tempalate}"/>
            </u:UScrollViewer>
            
            <u:UGrid Width="192" Height="165" Canvas.Left="510" Canvas.Top="47" x:Name="Grid1">
                <u:UScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                    <u:UCanvas Background="Pink" Width="500" Height="500" x:Name="ScrollCanvas">
                        <u:UButton Width="100" Height="50" Canvas.Left="0" Canvas.Top="50" Background="Azure" >Button S1</u:UButton>
                        <u:UButton Width="100" Height="50" Canvas.Left="0" Canvas.Top="450">Button S2</u:UButton>
                    </u:UCanvas>
                </u:UScrollViewer>
            </u:UGrid>
            <u:UElementMenu Canvas.Left="363" Canvas.Top="53" Header="Item1" x:Name="menu1">
                <u:UElementMenuItem />
                <u:UElementMenuDirectory>
                    <u:UElementMenuItem Header="Item2"/>
                    <u:UElementMenuItem Header="Item3"/>
                </u:UElementMenuDirectory>
            </u:UElementMenu>
        </u:UCanvas> 
    </u:UStackPanel>
</u:UObject>
